.class Lcom/estrongs/android/taskmanager/ac;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/HomeActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/HomeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/ac;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public declared-synchronized handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v1, 0x0

    monitor-enter p0

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_0
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v2, 0x6

    if-eq v0, v2, :cond_0

    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v2, 0x7

    if-ne v0, v2, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/ac;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->a(Lcom/estrongs/android/taskmanager/HomeActivity;)Landroid/content/Context;

    move-result-object v0

    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v2

    invoke-static {v0, v2, v3}, Lcom/estrongs/android/taskmanager/ht;->a(Landroid/content/Context;J)V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/estrongs/android/taskmanager/ib;

    if-eqz v0, :cond_0

    iget-object v2, v0, Lcom/estrongs/android/taskmanager/ib;->a:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, v0, Lcom/estrongs/android/taskmanager/ib;->b:Ljava/lang/String;

    if-eqz v2, :cond_0

    sget v3, Lcom/estrongs/android/taskmanager/HomeActivity;->e:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    iget-object v2, v0, Lcom/estrongs/android/taskmanager/ib;->a:Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v2

    :goto_1
    if-ge v3, v2, :cond_0

    :try_start_2
    new-instance v3, Landroid/content/Intent;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/ac;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    const-class v4, Lcom/estrongs/android/taskmanager/TaskmgrUpgrade;

    invoke-direct {v3, v2, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "status"

    const/4 v4, 0x2

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v2, "market"

    iget-object v4, v0, Lcom/estrongs/android/taskmanager/ib;->b:Ljava/lang/String;

    invoke-virtual {v3, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    move v2, v1

    :goto_2
    iget-object v1, v0, Lcom/estrongs/android/taskmanager/ib;->c:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v2, v1, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/ac;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/HomeActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :catch_0
    move-exception v2

    move v2, v1

    goto :goto_1

    :cond_2
    :try_start_3
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v4, "url_"

    invoke-direct {v1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    iget-object v1, v0, Lcom/estrongs/android/taskmanager/ib;->c:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_2

    :cond_3
    iget v0, p1, Landroid/os/Message;->what:I

    const/16 v1, 0xb

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/ac;->a:Lcom/estrongs/android/taskmanager/HomeActivity;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/HomeActivity;->b(Lcom/estrongs/android/taskmanager/HomeActivity;)Landroid/os/Handler;

    move-result-object v0

    const-string v1, "http://www.estrongs.com/up?id=2"

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskmgrUpgrade;->a(Landroid/os/Handler;Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto/16 :goto_0
.end method
